import { createRouter, createWebHashHistory } from "vue-router";
import Home from "@views/home/Home.vue";
import ScrollList from "@views/scroll-list/ScrollList.vue";
import Screen1 from "@views/screen-1/Screen1.vue";
import DynamicInserter from "@views/dynamic-insert/DynamicInserter.vue";
import MouseWheelSlider from "@views/mouse-wheel-slider/MouseWheelSlider.vue";

const routes: any[] = [
  {
    path: "/home",
    component: Home,
    meta: { label: "首页" },
  },
  {
    path: "/scroll_list",
    component: ScrollList,
    meta: { label: "无线循环滚动列表" },
  },
  {
    path: "/screen1",
    component: Screen1,
    meta: { label: "大屏" },
  },
  {
    path: "/dynamic_insert",
    component: DynamicInserter,
    meta: { label: "指定位置插入内容" },
  },
  {
    path: "/mouse-wheel-slider",
    component: MouseWheelSlider,
    meta: { label: "鼠标滚轮控制轮播图" },
  },
];
// 创建路由实例
const router = createRouter({
  history: createWebHashHistory(),
  routes,
});
export default router;
